package com.zmj.sy.mom.srv.aps.bean.entity.resource;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseEntity;
import com.zmj.sy.mom.srv.aps.utils.Comment;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalTime;

@Comment("班次")
@Getter
@Setter
@TableName("tb_shift")
public class Shift extends BaseEntity {

    @Comment("班制ID")
    private Integer shiftTypeId;

    @Comment("班次顺序")
    private Integer seq;

    @Comment("班次名称")
    private String teamNo;

    @Comment("开始时间今日还是次日 0今日 1次日")
    private Integer offsetStartDay;

    @Comment("工作开始时间")
    private LocalTime startTime;

    @Comment("结束时间今日还是次日 0今日 1次日")
    private Integer offsetEndDay;

    @Comment("工作结束时间")
    private LocalTime endTime;

    @Comment("总工作时间 分钟")
    private Integer totalWorkTime;

    @Comment("总休息时间 分钟")
    private Integer totalBreakTime;

    @Comment("总时间 分钟")
    private Integer totalTime;

    @Comment(value = "扩展字段：breakPeriods休息时间段")
    private String attr;

    @Comment(value = "有效时长  分钟")
    private Integer validTime;

}
